package com.jiangtour.service;

import com.jiangtour.dto.OrderDTO;
import com.jiangtour.dto.QueryOrderDTO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface OrderService {

    /** 创建订单. */
    OrderDTO create(OrderDTO orderDTO);

    /** 查询单个订单. */
    OrderDTO findOne(String orderId);

    /** 查询订单列表. */
    Page<OrderDTO> findList(String ascriptionId, Pageable pageable);

    /** 取消订单. */
    OrderDTO cancel(OrderDTO orderDTO);

    /** 完结订单. */
    OrderDTO finish(OrderDTO orderDTO);


    /** 查询订单列表. */
    Page<OrderDTO> findList(Pageable pageable);

    Page<OrderDTO> findByList(Pageable pageable, QueryOrderDTO queryOrderDTO);

    /**按条件导出**/
    List<OrderDTO> findAllExcel(QueryOrderDTO queryOrderDTO);
}
